package com.example.bsxk.service.impl;

import com.example.bsxk.entity.Thesis;
import com.example.bsxk.mapper.ThesisMapper;
import com.example.bsxk.service.LxinThesisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LxinThesisServiceImpl implements LxinThesisService {
    @Autowired
    ThesisMapper mapper;

    @Override
    public void insert(Thesis thesis) {
        mapper.insert(thesis);
    }

    @Override
    public void delete(Integer id) {
        mapper.deleteByPrimaryKey(id);
    }

    @Override
    public void update(Thesis thesis, Integer id) {
        mapper.updateByPrimaryKey(thesis);
    }
}
